package com.bingxue.edu.management.shop.model.entity;

import com.bingxue.edu.common.enums.CouponStatusEnum;
import com.bingxue.edu.common.enums.ReceiveTypeEnum;
import com.bingxue.edu.framework.common.model.BusinessEntity;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 优惠卷
 *
 * @author zq
 * @since 2024/08/22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table("shop_coupon")
public class Coupon extends BusinessEntity {

    @Schema(description = "家长id")
    private String parentId;

    @Schema(description = "优惠券模板id")
    private String couponTemplateId;

    @Schema(description = "订单id")
    private String orderId;

    @Schema(description = "领取方式")
    private ReceiveTypeEnum receiveType;

    @Schema(description = "领取时间")
    private LocalDateTime receiveTime;

    @Schema(description = "使用时间")
    private LocalDateTime useTime;

    @Schema(description = "优惠券状态")
    private CouponStatusEnum couponStatus;
}
